// 兼容 IE
import 'core-js/stable';
import 'regenerator-runtime/runtime';

import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)

import { Card, SubmitBar, Empty, Grid, GridItem, Uploader } from 'vant';
Vue.use(Card);
Vue.use(SubmitBar);
Vue.use(Empty);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Uploader);

// 设置 js中可以访问 $cdn
import { $cdn } from '@/config';
Vue.prototype.$cdn = $cdn;

import dayjs from 'dayjs'
Vue.prototype.dayjs = dayjs

// 全局引入按需引入UI库
import '@/plugins/index';
// 引入全局样式
import '@/assets/css/index.scss';
// 移动端适配
import 'lib-flexible/flexible.js';

// filters
import './filters';
Vue.config.productionTip = false;

new Vue({
	el: '#app',
	router,
	store,
	render: (h) => h(App)
});
